package com.navi.loaddata.core.mesEntity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * Created by ghost on 2018/3/15.
 */
public class SpcDcmeasuredataresultPK implements Serializable {
    private long dcdataid;
    private long seq;

    @Column(name = "DCDATAID")
    @Id
    public long getDcdataid() {
        return dcdataid;
    }

    public void setDcdataid(long dcdataid) {
        this.dcdataid = dcdataid;
    }

    @Column(name = "SEQ")
    @Id
    public long getSeq() {
        return seq;
    }

    public void setSeq(long seq) {
        this.seq = seq;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SpcDcmeasuredataresultPK that = (SpcDcmeasuredataresultPK) o;

        if (dcdataid != that.dcdataid) return false;
        if (seq != that.seq) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (dcdataid ^ (dcdataid >>> 32));
        result = 31 * result + (int) (seq ^ (seq >>> 32));
        return result;
    }
}
